<?php
/*
 * @Author: CHINAKAIYUAN<sunkaiyuan@namenode.cn>
 * @Date: 2022-01-27 21:13:39
 * @LastEditTime: 2023-07-15 14:58:25
 * @LastEditors: 孙开源 && sunkaiyuan@namenode.cn
 * @Description: 
 */

namespace App\Models;


class MenuMeta extends BaseModel
    {

    public $table = "basedata_menu_meta";
    protected $guarded = [];
    protected $casts = [
        'hidden'           => 'boolean',
        'fullpage'         => 'boolean',
        'hiddenBreadcrumb' => 'boolean',
        'opened'           => 'boolean',
        'affix'            => 'boolean',
    ];
    public function menu()
        {
        return $this->hasOne(Menu::class, "meta_", "id");
        }
    }